<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <include file='__VIEW__/Common/header' />
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="30">tid</th>
			  <th>类型名称</th>
			  <th width="260">操作</th>
			</tr>
			<if value="empty($typeData)">
				<tr><td colspan="3">还没有类型</td></tr>
			<else />
				<foreach from="$typeData" key="$k" value="$v">
					<tr>
						<td>{$v.tid}</td>
						<td>{$v.tname}</td>
						<td>
							<a href="{|U:'TypeAttr/index',array('tid'=>$v['tid'])}" class="btn btn-sm btn-success">属性列表</a>
							<a href="{|U:'edit',array('tid'=>$v['tid'])}" class="btn btn-sm btn-warning">编辑</a>
							<a href="javascript:;" class="btn btn-sm btn-danger" onclick="del('{|U:'del',array('tid'=>$v['tid'])}')">删除</a>
						</td>
					</tr>
				</foreach>
			</if>
		</table>
		<div id="page">{$pageData}</div>
	</body>
</html>
